package com.hbb20;

import ohos.agp.components.AttrSet;
import ohos.agp.components.TextField;
import ohos.agp.components.element.ShapeElement;
import ohos.app.Context;

public class CustomTextField extends TextField {

    public CustomTextField(Context context) {
        this(context, null);
    }

    public CustomTextField(Context context, AttrSet attrSet) {
        this(context, attrSet, "");
    }

    public CustomTextField(Context context, AttrSet attrSet, String styleName) {
        super(context, attrSet, styleName);

        initTextField(attrSet);
    }


    private void initTextField(AttrSet attrSet) {


        ShapeElement cursorShapeElement = new ShapeElement(mContext, ResourceTable.Graphic_cursor_bubble);
        setBubbleElement(cursorShapeElement);


    }


}
